package com.link.base.base.approval.service;

import com.link.base.base.approval.model.ApprovalNode;
import com.link.core.basic.service.BasicService;

/**
 * Copyright  hande Company. All Rights Reserved.
 *
 * @author  unknwon
 * @date:   2018/11/8 14:36
 * @version 1.0
 */

public interface ApprovalNodeService extends BasicService<ApprovalNode> {
    /**
     * 查询审批流程的第n个节点
     * @param record
     * @return
     * @throws Exception
     */
    public ApprovalNode queryOneApprovalNode(ApprovalNode record) throws Exception;


    /**
     * 根据审核设置Id，查询第一条审核节点
     *
     * @param approvalId
     * @return
     * @throws Exception
     */
    public ApprovalNode queryFirstApprovalNode(Long approvalId) throws Exception;


}
